<template>
    <div class="carhead">
        <van-nav-bar
        title="购物车"
        left-text=""
        right-text="首页"
        left-arrow
        fixed
        @click-left="onClickLeft"
        @click-right="onClickRight"
        />
    </div>
</template>

<script>
export default {
    data(){
        return{}
    },
    methods:{
        onClickLeft(){
            this.$router.go(-1)
        },
        onClickRight(){
            this.$router.push("/home")
        }
    }
}
</script>

<style scoped>
</style>